package com.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * Created by dpeng on 2015/8/31.
 */
public class HelloTag extends SimpleTagSupport{
    @Override
    public void doTag() throws JspException, IOException {
        JspWriter printWriter = getJspContext().getOut();
        printWriter.println("hello mytag");
    }
}
